package com.wangc.commons.enums;

/**
 * redis缓存key枚举类
 *
 * @author: 刘杰
 * @date: 2020/4/21
 */
public enum RedisKeyEnum {
    COMMONS_USER("COMMONS:USER_%s", "用户信息"),

    END("", "");

    private String key;

    private String desc;

    RedisKeyEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public String key() {
        return this.key;
    }

    @Override
    public String toString() {
        return this.key;
    }

}
